package com.franklin.ideaplugin.maphelper.col.method.impl;

import com.franklin.ideaplugin.maphelper.col.method.IColInsertMethod;
import lombok.Data;

/**
 * @author Ye Junhui
 * @since 2024/3/11
 */
@Data
public class ColInsertMethodImpl implements IColInsertMethod {

    /**
     * 方法名
     */
    private final String methodName;

    /**
     * 参数数量
     */
    private final int paramCount;

    /**
     * 写入索引
     */
    private final int insertParamIndex;

    public ColInsertMethodImpl(String methodName, int paramCount, int insertParamIndex) {
        this.methodName = methodName;
        this.paramCount = paramCount;
        this.insertParamIndex = insertParamIndex;
    }

    @Override
    public String getMethodName() {
        return this.methodName;
    }

    @Override
    public int getParamCount() {
        return this.paramCount;
    }

    @Override
    public int getInsertParamIndex() {
        return this.insertParamIndex;
    }

}
